﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Site.Master" AutoEventWireup="true" CodeBehind="ProductCategory.aspx.cs" Inherits="PiaoanWeb.Admin.ProductCategory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0px" cellspacing="0px" style="border: 0px; width: 990px; margin-left: auto; margin-right: auto; letter-spacing: 1px; line-height: 30px">
        <tr>
            <td align="center" style="background-color: rgb(111,189,102); font-size: 18px; font-weight: bold; font-family: 微软雅黑" colspan="3">产品类别</td>
        </tr>
        <tr align="center">
            <td style="width: 10%"><b>类别名称：</b></td>
            <td style="width: 70%">
                <asp:TextBox ID="categoryNameTxtBox" runat="server" Height="25px" Width="98%"></asp:TextBox></td>
            <td style="width: 20%">
                <asp:Button ID="addCategoryBtn" runat="server" Text="添加类别" Style="width: 125px; height: 30px; text-align: center; color: white; letter-spacing: 1px; font-family: 微软雅黑; font-size: 14px; background-color: rgb(36, 115, 234); border-style: none;" OnClick="addCategoryBtn_Click" /></td>
        </tr>
        <tr>
            <td colspan="3" align="center">
                <asp:GridView ID="CategoryListGridView" runat="server" CssClass="table1" Width="50%" AllowPaging="false"
                    AutoGenerateColumns="false" ItemType="PiaoanWeb.AppLogic.DataAccessLayer.Categories" 
                    OnRowDataBound="CategoryListGridView_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="序号">
                            <ItemTemplate>
                                <asp:Label ID="indexLbl" runat="server" Text=""></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="true" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="true"
                                Width="40px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="类别名称">
                            <ItemTemplate>
                                <asp:Label ID="categroyNameLbl" runat="server" Text='<%# Item.Name %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="true" />
                            <ItemStyle BackColor="White" HorizontalAlign="Left" VerticalAlign="Middle" Font-Bold="true" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
